<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Vue.js grid component example</title>
    <!--
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    -->
    <link rel="stylesheet" href="../../lib/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../lib/bootstrap-table/1.8.1/bootstrap-table.min.css">
    <link rel="stylesheet" href="style.css">
    </head>
  <body>

    <!-- component template -->
    <script type="text/x-template" id="grid-template">
      <table>
        <thead>
          <tr>
            <th v-repeat="key: columns"
              v-on="click:sortBy(key)"
              v-class="active: sortKey == key">
              {{key | capitalize}}
              <span class="arrow"
                v-class="reversed[key] ? 'dsc' : 'asc'">
              </span>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr v-repeat="
            entry: data
            | filterBy filterKey
            | orderBy sortKey reversed[sortKey]">
            <td v-repeat="key: columns">
              {{entry[key]}}
            </td>
          </tr>
        </tbody>
      </table>
    </script>

    <!-- demo root element -->
    <div id="demo">
      <form id="search">
        Search <input name="query" v-model="searchQuery">
      </form>
      <demo-grid
        data="{{gridData}}"
        columns="{{gridColumns}}"
        filter-key="{{searchQuery}}">
      </demo-grid>
    </div>

    <script src="../../lib/jquery/2.1.4/jquery-2.1.4.min.js"></script>
    <script src="../../lib/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script src="../../lib/bootstrap-table/1.8.1/bootstrap-table.min.js"></script>
    <script src="../../lib/vue/0.12.10/vue.js"></script>
    <script src="rawstream-v3.js"></script>

  </body>
</html>